// 当前业务逻辑 : 
$(function () {
    hideHeader()
    function showHeader() {
        $(this).children(".box")
            .stop(true)
            .slideDown(100)
            .css({
                'display':'flex',
                "border-top": "1px solid white"
            })

        $(this).css({
            "background-color": "white",
            "border-bottom": "1px solid white",
            "border-top": "1px solid red",
        })
    }
    function hideHeader() {
        $(this).children(".box")
            .stop(true)
            .slideUp(100)

        $(this).css({
            "background-color": "#F5F5F5",
            
        })

    }
    $(".header_span").mouseover(showHeader);
    $(".header_span").mouseout(hideHeader);

    // 用户
    hideYong()
    function showYong() {
        $('.on_box')
        .css({
            'display':'flex',
        })
    }
    function hideYong() {
        $('.on_box')
        .css({
            'display':'none',
        })

        

    }
    $(".on").mouseover(showYong);
    $(".on").mouseout(hideYong);
    $(".on_box").mouseover(showYong);
    $(".on_box").mouseout(hideYong);




    //轮播图 ---------------------------------------
    lpthide();
    function lptshow(){
        $(this)
        .addClass('active1')
        .siblings()
        .removeClass('active1');
        $(".box_content").css({
            'display':'block',
        })
    }

    function lpthide(){
        $('.box_content> li')
        .removeClass('active1')
        .eq($(this).index())
        .addClass('active1');

        $(".box_content").css({
            'display':'none',
        })



        $(this)
        .removeClass('active1')
    }
    $(".sort_heart>.box > li").mouseover(lptshow);
    $(".sort_heart>.box > li").mouseout(lpthide);

    function lptshow1(){
        $(".box_content").css({
            'display':'block',
        })
    }

    function lpthide1(){
        $(".box_content").css({
            'display':'none',
        })



        $(this)
        .removeClass('active1')
    }
    $(".box_content").mouseover(lptshow1);
    $(".box_content").mouseout(lpthide1);


});